<script type="text/javascript">
	$(function(){
        $('.chk_id').change(function(){
            postItemChange(this,$(this).is(':checked')?1:0);
            checkboxChange();
        });
        $('.myall').click(function(){
            var selected = $(this).is(':checked');
            $(':checkbox').not(':disabled').each(function(index,item){
                postItemChange(item,selected?1:0);
                $(item).attr('checked',selected);
            });
            checkboxChange();
        });
        var postItemChange = function(item,isSelected){
            $.post('/member/selectstore', {'itemid':$(item).val(),'selected':isSelected}, function(data){
                if(data==-1){
                    alert('操作出错，请重新登录后再进行操作');
                    return;
                }
                $(".operating i,.warehousetop i em").text(data.count);
                $(".count em").text(parseInt(data.weight));
            }, 'json');            
        };
        var checkboxChange=function(){
            var ids = [];
            var weight = 0;
            $('.chk_id').each(function(index,item){
                if(  $(item).is(':checked')){                                    
                        ids.push($(item).val());
                        weight += parseInt($(item).attr('weight'));
                }
            });
            $("#store_ids").val(ids.join(','));
            $(".operating i,.warehousetop i em").text(ids.length);
            $(".count em").text(weight);                
        };
        
        $('#btnsubmit').click(function(){
            if($('.chk_id:checked').length==0){
                alert('请选择需要提交的商品');
                return false;
            }
            window.location = '/member/waybillcreate'
        });        

        $('.tez li').hover(function(){
            $('.tc',this).show();
        }, function(){
            $('.tc',this).hide();
        });
    $('.tez li').click(function(){return false});
        $('.wen').hover(function(){$('.tc',this).show();}, function(){$('.tc',this).hide();});
    })
    
</script>
<div class="center">
	<div class="home">
        <div class="home_left">
            <?php echo $this->partial('member/menu.phtml',array('uCount' => $this->uCount,'menuId'=>$this->menuId,'user'=>$this->user,'account'=>$this->account)); ?>
        </div>
    	<div class="home_right">
            <div class="storehousetop">
            
                <div class="storehouse">
                    <div class="cloud">
                        <span>我的美国仓</span>
                    </div>
                    <div class="storehouseinfo">
                        <h1>我的美国仓</h1>
                        
                    </div>
                </div>
            
                <div class="storehousenav">
                    <ul>
                        <li class="storehouseon"><a href="/member/usstorelist"><i class="storehouse1"></i>我的美国库存</a></li>
                        <li><a href="/member/usstore"><i class="storehouse3"></i>我的美国仓地址</a></li>
                    </ul>
                </div>
            </div>
            
            <div class="mywarehouse">
                <div class="warehousetop">
                    <h2></h2>
                </div>
            </div>
            <div class="warehouselist">
            	<table>
                	<tr>
                    	<th class="t1"><input name="" type="checkbox" value="" class="myall" /></th>
                    	<th class="t2">编号</th>
                    	<th class="t3">名称</th>
                    	<th class="t4">物品净重</th>
                    	<th class="t5"><div class="wen">
                                <span>体积重量</span>
                            	<a class="wtb" href="javascript:void(0)">疑问</a>
                                <div class="tc" style="display:none;margin-left:-100px;">
                                    <div class="jtou" style="margin-left:160px"></div>
                                    <p>根据四大国际快递公司规定，物品运送时，取物品实际重量与体积重量较大者进行结算。在集中托运时，一批货物由几件不同的货物组成，有轻抛货也有重货。其计费重量则采用整批货物的总毛重或总体积计量，按两者之中较高的一个计算。</p>
                               </div>
                            </div></th>
                    	<th class="t6">入库时间</th>
                    </tr>
                </table>
                <div class="Noinventory">
                	<div class="no_pic">
                    	库存为空
                    </div>
                    <div class="NOsm">
                        <h2>您的仓库没有任何物品！</h2>
                        <p>猜您接下来会：<a href="/member/instore/">预报入库</a></p>
                        <div class="jianj" style="display:none;margin-left:450px;width: 300px;">
                            <div class="jtou" style="margin-left:160px;"></div>
                            <p>会员卡具有免费发送一次香港小包体验功能,悠奇的1元体验金，并且有10元国际运费优惠券。</p>
                        </div>
                    </div>
                </div>
            
            </div>
           
            
        </div>
    </div>
</div>
<!--单页面使用多分享按钮需要增加的分享参数代码-->                        
<script type="text/javascript">
function setShare(title, url,content,pic) {
    jiathis_config.title = title;
    jiathis_config.url = url;
    if(content){
      jiathis_config.summary = content;
    }
     if(pic){
      jiathis_config.pic = pic;
    }
}
  var jiathis_config = {}
  
  $("#Receive").mousemove(function(){
      $(".jianj").show();
  });
  $(".jianj").mouseout(function(){
     $(".jianj").hide(); 
  });
</script>   
<!--分享参数代码结束-->
<!--分享功能代码统一放到页尾-->
<script type="text/javascript" src="http://v1.jiathis.com/code/jia.js?uid=1334580904971198" charset="utf-8"></script>
<!--分享功能代码结束-->